-
Notifications
You must be signed in to change notification settings - Fork 820
feat: transformer redesign #5534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request introduces 26 alerts when merging 1cb94b3 into c932d6f - view on LGTM.com new alerts:
|
1cb94b3 to
c9a1460
Compare
|
This pull request introduces 26 alerts when merging c9a1460 into c932d6f - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #5534 +/- ##
==========================================
- Coverage 58.15% 57.99% -0.17%
==========================================
Files 407 410 +3
Lines 18747 18769 +22
Branches 3745 3750 +5
==========================================
- Hits 10903 10885 -18
- Misses 7162 7200 +38
- Partials 682 684 +2
Continue to review full report at Codecov.
|
|
This pull request introduces 7 alerts when merging 215463c into c932d6f - view on LGTM.com new alerts:
|
215463c to
aeada80
Compare
|
This pull request introduces 8 alerts when merging aeada80 into 952a92e - view on LGTM.com new alerts:
|
aeada80 to
fbb6784
Compare
|
This pull request introduces 8 alerts when merging fbb6784 into 952a92e - view on LGTM.com new alerts:
|
fbb6784 to
faa5e25
Compare
|
This pull request introduces 18 alerts when merging faa5e25 into 77132a2 - view on LGTM.com new alerts:
|
faa5e25 to
77db0f1
Compare
|
This pull request introduces 30 alerts when merging 77db0f1 into 7a806b2 - view on LGTM.com new alerts:
|
|
This pull request introduces 20 alerts when merging 019a3ec into c0d73a6 - view on LGTM.com new alerts:
|
6859a16 to
103d0b0
Compare
|
This pull request introduces 20 alerts when merging 9246df1 into 319a3ae - view on LGTM.com new alerts:
|
|
This pull request introduces 5 alerts when merging 381d87d into 319a3ae - view on LGTM.com new alerts:
|
|
This pull request introduces 5 alerts when merging e379e6e into 6143e4b - view on LGTM.com new alerts:
|
attilah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job on this huge chunk, I appreciate all the comments around the new code!
It looks good to me I have a bunch of nits, most of them around naming fix as you wish:
- In general I would avoid using the 'New' prefix for types as these will be part of the 'public API'
- A lot of filenames are not matching the class/interface inside. It would be nice to be concise in this to make it easier to locate things. Of course when multiple types/functions are inside it makes sense.
- We should leverage Record type all around we've a plenty of places with [...]: ... members
- transformer-resources.ts is an empty file
- A lot of Todos are in the code it would be nice to see if they're planned to be addressed in this PR or future one?
- for (let foo of -> for (const foo of in some places
- Defination -> Definition at some places, not sure tagged all of those
- JSON.parse and stringify to use JSONUtilities
One extra thing I would like be addressed is to get out compileSchema from awscloudformationprovider as it is making that project a bottleneck for package loading.
packages/amplify-provider-awscloudformation/src/utils/transfomer-feature-flag-adapter.ts
Outdated
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/utils/transfomer-feature-flag-adapter.ts
Outdated
Show resolved
Hide resolved
packages/amplify-graphql-transformer-interfaces/src/graphql-api-provider.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-config.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/utils.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/utils.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-graphql-schema.ts
Show resolved
Hide resolved
|
This pull request introduces 4 alerts when merging 941f862 into 955022c - view on LGTM.com new alerts:
|
packages/amplify-graphql-model-transformer/src/graphql-model-transformer.ts
Show resolved
Hide resolved
packages/amplify-graphql-model-transformer/src/graphql-model-transformer.ts
Show resolved
Hide resolved
packages/amplify-graphql-model-transformer/src/graphql-model-transformer.ts
Show resolved
Hide resolved
packages/amplify-graphql-model-transformer/src/graphql-model-transformer.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-config.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-config.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/utils.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-graphql-schema.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-graphql-schema.ts
Show resolved
Hide resolved
9a70715 to
78e7730
Compare
|
This pull request introduces 2 alerts when merging 78e7730 into 955022c - view on LGTM.com new alerts:
|
packages/amplify-graphql-model-transformer/src/graphql-model-transformer.ts
Show resolved
Hide resolved
packages/amplify-graphql-transformer-core/src/cdk-compat/nested-stack.ts
Show resolved
Hide resolved
packages/amplify-graphql-transformer-core/src/transformation/transformer-plugin-base.ts
Show resolved
Hide resolved
packages/amplify-provider-awscloudformation/src/graphql-transformer/transform-config.ts
Show resolved
Hide resolved
|
This pull request introduces 2 alerts when merging 72466cd into 955022c - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging e487512 into 955022c - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 21b8ba0 into 955022c - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 7ca5fd8 into 955022c - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging faf8bdf into 955022c - view on LGTM.com new alerts:
|
| throw new SchemaValidationError(errors); | ||
| } | ||
|
|
||
| // // check if the project is sync enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it leftover?
attilah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some new nit comments, but LGTM, we can enhance, change things later.
faf8bdf to
7a62b6e
Compare
New experimental graphql transformer with support for Pipeline functions. Currently this is behind a feature flag `useExperimentalPipelinedTransformer` and support only model directive.
|
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.